#include "DecoratorNode.h"

#include "Output/Console.h"
#include "ScriptCompiler/Token/Token.h"

bool CDecoratorNode::IsStatic() const
{
    for(auto& Token : Decorators)
    {
        if(Token->Type == EScriptTokenType::Static)
        {
            return true;
        }
    }

    return false;
}

void CDecoratorNode::DebugPrint(int32_t InDepth)
{
    //print depth
    for (int32_t i = 0; i < InDepth; i++)
    {
        WH::Print(U"\t");
    }

    CString Print;
    for(auto& Token : Decorators)
    {
        Print+=Token->ToString();
        Print+=U" ";
    }

    WH::Print(Print);

}